home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 19.zip
/
BS1 part 19
/
Util Collection 5 BS1.adf
/
SCRIPTS
/
b_7x7_true_average_a(cd).scr
< prev
next >
Wrap
Text File
|
1988-01-19
|
683b
|
52 lines
; centre centre
d convolve a 1 1 1 1 1 1 1 1 1
; top left
c shift a 3 3
b convolve c 0 0 0 0 1 1 0 1 1
d add d b
; top middle
c shift a 0 3
b convolve c 0 0 0 1 1 1 1 1 1
d add d b
; top right
c shift a -3 3
b convolve c 0 0 0 1 1 0 1 1 0
d add d b
; centre left
c shift a 3 0
b convolve c 0 1 1 0 1 1 0 1 1
d add d b
; centre right
c shift a -3 0
b convolve c 1 1 0 1 1 0 1 1 0
d add d b
; bottom left
c shift a 3 -3
b convolve c 0 1 1 0 1 1 0 0 0
d add d b
; bottom centre
c shift a 0 -3
b convolve c 1 1 1 1 1 1 0 0 0
d add d b
; bottom right
c shift a -3 -3
b convolve c 1 1 0 1 1 0 0 0 0
d add d b
; do the division
c level 49
b divide d c
; clean up
flush c
flush d